package com.blb.order_service.fallback;

import com.blb.order_service.entity.Goods;
import com.blb.order_service.feign.GoodsFeignClient;
import org.springframework.stereotype.Component;

/**
 * Goods服务的回退处理
 */
@Component
public class GoodsServiceFallback implements GoodsFeignClient {

    @Override
    public Goods findById(Long id) {
        Goods goods = new Goods();
        goods.setId(id);
        goods.setName("回退数据");
        return goods;
    }
}
